package com.bw.repair.adapter

import android.widget.TextView
import com.bw.repair.R
import com.bw.repair.entity.RepairEntityItem
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder

class RepairAdapter:BaseQuickAdapter<RepairEntityItem,BaseViewHolder>(R.layout.item_repair) {
    override fun convert(holder: BaseViewHolder, item: RepairEntityItem) {
        holder.getView<TextView>(R.id.repair_name).text = item.repairName
        holder.getView<TextView>(R.id.repair_time).text = item.repairTime
        holder.getView<TextView>(R.id.repair_phone).text = item.contactMethod
        holder.getView<TextView>(R.id.repair_address).text = item.repairLocation
    }
}